package hcn.protocol.ods.checkAppointment.xml;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 检查预约项目查询XML入参
 *
 * @author neoLin - 2023/01/13 15:31
 **/
@XmlRootElement(name = "MsgBody")
public class QueryAppointItemXmlRequest {

    private Patient patient;

    @XmlElement(name = "Patient")
    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    @XmlRootElement(name = "Patient")
    public static class Patient {

        /**
         * 机构代码
         */
        private String organization;
        /**
         * 患者类型1.门诊2.急诊3.住院9.其他
         */
        private String patientType;
        /**
         * 查询方式1.磁条卡2.社会保障卡3.442芯片卡，4428芯片卡4.居民健康卡5.非接卡（院内卡）7.身份证8.住院号9.病历号
         */
        private String queryType;
        /**
         * 卡号
         */
        private String queryCode;
        /**
         * 查询科室
         */
        private String queryDept;
        /**
         * 紧急标志0.全部，1.普通2.急诊
         */
        private String isEmergency;
        /**
         * 0全部 1未预约 2已预约 3 待执行  4 已执行
         */
        private String appointStatus;

        @XmlElement(name = "Organization")
        public String getOrganization() {
            return organization;
        }

        public void setOrganization(String organization) {
            this.organization = organization;
        }

        @XmlElement(name = "PatientType")
        public String getPatientType() {
            return patientType;
        }

        public void setPatientType(String patientType) {
            this.patientType = patientType;
        }

        @XmlElement(name = "QueryType")
        public String getQueryType() {
            return queryType;
        }

        public void setQueryType(String queryType) {
            this.queryType = queryType;
        }

        @XmlElement(name = "QueryCode")
        public String getQueryCode() {
            return queryCode;
        }

        public void setQueryCode(String queryCode) {
            this.queryCode = queryCode;
        }

        @XmlElement(name = "QueryDept")
        public String getQueryDept() {
            return queryDept;
        }

        public void setQueryDept(String queryDept) {
            this.queryDept = queryDept;
        }

        @XmlElement(name = "IsEmergency")
        public String getIsEmergency() {
            return isEmergency;
        }

        public void setIsEmergency(String isEmergency) {
            this.isEmergency = isEmergency;
        }

        @XmlElement(name = "AppointStatus")
        public String getAppointStatus() {
            return appointStatus;
        }

        public void setAppointStatus(String appointStatus) {
            this.appointStatus = appointStatus;
        }
    }
}
